package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.DealerDetailBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 经销商详情信息表 Mapper 接口
 * </p>
 *
 * @author zph
 * @since 2019-08-12
 */
public interface DealerDetailMapper extends RootMapper<DealerDetailBean> {

    /**
     * 通过id批量查询经销商详情信息
     *
     * @param ids
     * @return
     */
    List<DealerDetailBean> getBatchByIds(@Param("ids") List<Integer> ids);

    /**
     * 根据id修改经销商详情信息
     *
     * @param bean
     * @return
     */
    int modifyById(DealerDetailBean bean);

    /**
     * 邮箱数量
     *
     * @param email
     * @return
     */
    int getCountByEmail(@Param("email") String email);

    /**
     * 批量查询经销商详情信息
     *
     * @return
     */
    List<DealerDetailBean> getList();
}
